﻿using System;
using Microsoft.Phone.Controls;
using ScottIsAFool.WindowsPhone.Tools;
using System.Windows;

namespace PhoneFlipMenuSampleApp
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            new PhoneFlipMenu(new PhoneFlipMenuAction("reply", () => 
                                    { 
                                        MessageBox.Show("Hello"); 
                                    }),
                              new PhoneFlipMenuAction("reply all", () => { }),
                              new PhoneFlipMenuAction("forward", () => { })).Show();
        }
    }
}